package com.yxq.mdt.app.modules.video.adapter;

import android.util.Log;
import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yxq.mdt.app.R;
import com.yxq.mdt.app.modules.video.bean.RecommendListBean;

import java.util.List;

public class RecommendDataListAdapter extends BaseQuickAdapter<RecommendListBean, BaseViewHolder> {

    public RecommendDataListAdapter(int layoutResId, @Nullable List<RecommendListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RecommendListBean item) {
        ImageView icon = helper.getView(R.id.item_comment_img);
        icon.setImageResource(item.getImg());
        helper.setText(R.id.item_name_tv, item.getText());
        helper.setText(R.id.item_number_tv, item.getNumber());
        helper.setText(R.id.item_address_tv, item.getAddress());
        Log.e("wwww", item.getAddress());
    }


}
